<table class='dialogTable' cellspacing='0' cellpadding='0' style='width: 100%'>
	<tr>
		<td style='width:50%' valign='top'>
			<table class='inline' cellspacing='0' cellpadding='0' style='width: 100%'>
				<tr>
					<th colspan='4'>&nbsp;</th>
				</tr>
				<tr>
					<td style='width: 25%'>{translate}Doctor{/translate}</td>
					<td class="label" colspan='3'>{$inPatientEmr.doctor_name}</td>
				</tr>
				<tr>
					<td>{translate}General Allergy{/translate}</td>
					<td class="label">{$allergyDetail}</td>
					<td style='width:25%'>{translate}Drug Allergy{/translate}</td>
					<td class='label' style='width:25%'>{$drugAllergy}</td>
				</tr>
			</table>
		</td>
		<td style="width: 50%">
			<table class="inline" cellspacing='0' cellpadding='0' style='width: 100%'>
				<tr>
					<th colspan='4'>{translate}Vital sign{/translate} ({$lastestVitalSignDate})</th>
				</tr>
				<tr>
					<td style='width: 25%'>{translate}Pulse{/translate}</td>
					<td style='width: 25%'class="label">{$pulse}</td>
					<td style='width: 25%'>{translate}Temperature{/translate}</td>
					<td style='width: 25%' class="label">{$temperature}</td>
				</tr>
				<tr>
					<td>{translate}BP{/translate}</td>
					<td class="label">{$bp}</td>
					<td>{translate}Sp02{/translate}</td>
					<td class="label">{$sp02}</td>
				</tr>
				<tr>
					<td>{translate}Respiratory rate{/translate}</td>
					<td class="label">{$respiratoryRate}</td>
				</tr>
			</table>
		</td>
	</tr>
	<tr>
		<td width="50%">
			<table class="inline" cellspacing='0' cellpadding='0' style='width: 100%'>
				<tr>
					<th colspan='2'>{translate}Patient contact{/translate}</th>
				</tr>
				<tr>
					<td style='width: 20%'>{translate}Name{/translate}</td>
					<td style='width: 80%' class="label">
						{$pName}
						{if $pGender=='male'}
				          	({translate}Male{/translate}
				        {else}  
				            ({translate}Female{/translate}
				        {/if}
						{if ($pAge != '' && $pCareer != '')}
							{translate p1=$pAge p2=$pCareer}, Age: %s, %s){/translate}
						{elseif $pAge != ''}
							{translate p1=$pAge}, Age: %s){/translate}
						{elseif $pCareer != ''}
							, {$pCareer})
						{else}
							)
						{/if}  
					</td>
				</tr>
				<tr>
					<td>{translate}Address{/translate}</td>
					<td class="label">{$pAddress}</td>
				</tr>
				<tr>
					<td>{translate}Phone{/translate}</td>
					<td class="label">{$pPhone}</td>
				</tr>
			</table>
		</td>
		<td width="50%">
			<table class="inline" cellspacing='0' cellpadding='0' style='width: 100%'>
				<tr>
					<th colspan='2'>{translate}Relative{/translate}</th>
				</tr>
				<tr>
					<td style='width: 20%'>{translate}Name{/translate}</td>
					<td style='width: 80%' class="label">{$rName}</td>
				</tr>
				<tr>
					<td>{translate}Address{/translate}</td>
					<td class="label">{$rAddress}</td>
				</tr>
				<tr>
					<td>{translate}Phone{/translate}</td>
					<td class="label">{$rPhone}</td>
				</tr>
			</table>
		</td>
	</tr>
</table>

